package com.lyf.boot.modules.index.entity.dto;

import jakarta.validation.constraints.NotBlank;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

/**
 * 登录参数
 * @author Luyufan
 * @date 2023/7/5 10:22
 */
@Data
public class LoginDto implements Serializable {

    @Serial
    private static final long serialVersionUID = -3393687855087760676L;

    /**
     * 账号
     */
    @NotBlank(message = "账号不能为空")
    private String username;

    /**
     * 密码
     */
    @NotBlank(message = "密码不能为空")
    private String password;
}
